using IQIGame.Onigao.GamePlay;

namespace IQIGame.Onigao.Logic
{
    /// <summary>
    /// 给玩家增加道具
    /// </summary>
    public class ExecEnableQuickBar : BaseServiceExecution
    {
        public override void Execute(LevelRegion region, LevelPlayer player)
        {
            ExecParamEnableQuickBar config = _config as ExecParamEnableQuickBar;
            if (config == null)
            {
                LogicLog.LogError("config is null.");
                return;
            }
            player.isQuickBarDisabled = config.isEnabled;
        }
    }
}
